package visibleArithmeticExercise;

public class MIXADD extends Operation {

    static String ch = "+";
    static String ch1 = "-";

    public MIXADD(int n) {
        super(ch,ch1,n);
    }

    @Override
    public void operation() {
        correctAnswer = op1 * op2 * op3;
    }

    public void isNumRight(){
        while(op1 == op2)
            getRanNum();
        if(op1 < op2)
        {
            int temp = op1;
            op1 = op2;
            op2 = temp;
        }
        while(op1 == op3)
            getRanNum();
        if(op1 < op3)
        {
            int temp = op1;
            op1 = op3;
            op3 = temp;
        }
        while(op2 == op3)
            getRanNum();
        if(op2 < op3)
        {
            int temp = op2;
            op2 = op3;
            op3 = temp;
        }
    }


}

